<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    
    <script>
        var xmlHttp;
        if(window.XMLHttpRequest) {
            xmlHttp = new XMLHttpRequest();
        }else {
            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        }

        // xmlHttp.open("GET","http://jsonplaceholder.typicode.com/posts");
        xmlHttp.open("GET","A.json");
        xmlHttp.send();
        xmlHttp.onreadystatechange = function () {
            if (xmlHttp.readyState == 4 && xmlHttp.status === 200) {
                var test = JSON.parse(xmlHttp.responseText)
                console.log(test)
            }
        }
    
    </script>
</body>
</html>